package com.key.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel("分类使用情况")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AssetsStateDTO {
    @ApiModelProperty(name = "id",notes = "资产分类编号",dataType = "int",required = true)
    private Integer id;

    @ApiModelProperty(name = "AssetTypeName",notes = "分类名称",dataType = "String",required = true)
    private String assetTypeName;

    @ApiModelProperty(name = "allCount",notes = "总数量",dataType = "int",required = true)
    private Integer allCount;

    @ApiModelProperty(name = "unusedCount",notes = "闲置",dataType = "int",required = true)
    private Integer unusedCount;

    @ApiModelProperty(name = "collectingCount",notes = "领用",dataType = "int",required = true)
    private Integer collectingCount;

    @ApiModelProperty(name = "borrowCount",notes = "借用",dataType = "int",required = true)
    private Integer borrowCount;

    @ApiModelProperty(name = "transferringCount",notes = "调拨中",dataType = "int",required = true)
    private Integer transferringCount;

    @ApiModelProperty(name = "damageCount",notes = "损坏",dataType = "int",required = true)
    private Integer damageCount;

    @ApiModelProperty(name = "repairCount",notes = "报修",dataType = "int",required = true)
    private Integer repairCount;

    @ApiModelProperty(name = "maintenanceCount",notes = "维修中",dataType = "int",required = true)
    private Integer maintenanceCount;

    @ApiModelProperty(name = "badCount",notes = "报废",dataType = "int",required = true)
    private Integer badCount;

    @ApiModelProperty(name = "cleanCount",notes = "已清理",dataType = "int",required = true)
    private Integer cleanCount;

    public AssetsStateDTO(Integer allCount, Integer unusedCount, Integer collectingCount, Integer borrowCount, Integer transferringCount, Integer damageCount, Integer repairCount, Integer maintenanceCount, Integer badCount, Integer cleanCount) {
        this.allCount = allCount;
        this.unusedCount = unusedCount;
        this.collectingCount = collectingCount;
        this.borrowCount = borrowCount;
        this.transferringCount = transferringCount;
        this.damageCount = damageCount;
        this.repairCount = repairCount;
        this.maintenanceCount = maintenanceCount;
        this.badCount = badCount;
        this.cleanCount = cleanCount;
    }
}
